package com.zzyl.service.impl;

import com.zzyl.dto.DeptDto;
import com.zzyl.mapper.DeptMapper;
import com.zzyl.service.DeptService;
import com.zzyl.vo.DeptVo;
import com.zzyl.vo.TreeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service

public class DeptServiceimpl implements DeptService {

    @Autowired
    private DeptMapper deptMapper;
    @Override
    public List<DeptVo> getList(DeptDto deptDto) {

        return deptMapper.getList(deptDto);

    }

    @Override
    public TreeVo deptTree() {
       //查询所有数据，根据

        return null;
    }

    @Override
    public String insert(DeptDto deptDto) {
        return "";
    }
}
